make Section.toString() look alike other toString()s
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145375 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
888489c310
commit
98c52813dd
@ -59,18 +59,7 @@ public final class Section
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return toString( true );
|
||||
}
|
||||
|
||||
public String toString( boolean withProperties )
|
||||
{
|
||||
return "Section ("
|
||||
+ getStartOffset()
|
||||
+ "--"
|
||||
+ getEndOffset()
|
||||
+ ")"
|
||||
+ (withProperties ? "\n"
|
||||
+ _props.toString().replaceAll( "\n", "\n\t" ) : "");
|
||||
return "Section [" + getStartOffset() + "; " + getEndOffset() + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user