Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextSymbolizer: \n should trigger line break #584

Closed
artemp opened this issue Oct 11, 2011 · 6 comments
Closed

TextSymbolizer: \n should trigger line break #584

artemp opened this issue Oct 11, 2011 · 6 comments
Milestone

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

For rendering bilingual maps it should be possible to enter a defined line break by inserting a newline character backslash n

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[rcoup] Simple patch against 0.7 branch attached - needs more testing.

Deals with \n, should it deal with \r or \r\n as well?

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[stephankn] patched against 0.7.1dev and it's working

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[rcoup] Closed by 2432 and 2445. Thanks bcrosby for porting the patch to trunk.

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] Noticed that this does work:

<TextSymbolizer name="[field_with_a_break]" .../>

but this appears not to (syntax for a literal string):

<TextSymbolizer name="'one\nanother'" .../>

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[stephankn] Replying to [comment:6 springmeyer]:

but this appears not to (syntax for a literal string):
<TextSymbolizer name="'one\nanother'" .../>

I think this is not the XML representation of what you try to get. You want to have a \n character in XML, not \n as a literal string. Please try XML entity

<TextSymbolizer name="'one another'" .../>

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] stephankn, thanks, missed that.

test map added in r2448.

@artemp artemp closed this as completed Oct 11, 2011
artemp pushed a commit that referenced this issue Oct 11, 2011
…both literal, escaped break char and read from datasource
artemp pushed a commit that referenced this issue Oct 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant