I’m using XPreformatted to print some preformated text and I have an
issue with the line breaks.
The line breaks are correctly translated but additionally I get a
"question mark" at the end of each line.
This is my output:
first line?
second line?
some more text
I’m using django with mysql and the database field is a simple varchar field.
I checked it in the database and everything what is between the "e"
and the "s" in "first linE Second line" is a new line character.
With new line character I mean what is entered in the database when I press "enter" 😉
Thus for me it seems strange that on the one hand the new line is
correctly interpreted as a new line and additionally there is a wrong question mark.
ok I know now how to circumvent this behavior. I just remove the character which is before the \n . Its the byte character 13. Thus I created a gready repair algorithm to remove this character and my pdf generating world is fine again 😉
How to use it: