HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Simple text wrapping
- This topic has 4 replies, 4 voices, and was last updated Jul 27, 2012
11:50:42 by PD4ML.
-
AuthorPosts
-
February 7, 2012 at 17:09#26676
I’m having an issue with line breaks on formatted number fields. That is, numbers will break across lines improperly.
Here is the .html
<br /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br /> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br /> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><br /> <head><br /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><br /> <title>TI</title><br /> <style type="text/css"><br /> *{font-weight:normal;font-family:Arial;font-size:12px;}<br /> </style><br /> </head><br /> <body><br /> <p><br /> 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000<br /> 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000<br /> 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000<br /> </p><br /> </body><br /> </html>
and the output is attached.
Thanks for any assistance.
July 16, 2012 at 20:51#28861I am having this exact same problem. I can’t tell from the above code, but my situation often involves non-breaking white-space characters (u00A0), which PD4ML apparently refused to break on/before/after.
I was able to force PD4ML to not prefer breaking words at the comma over breaking words on white-space by replacing the comma character (u002C) with the ‘single low-9 quotation mark’ (u201A), which looks the same as a comma. Unfortunately, while PD4ML no longer breaks words up at the comma-like character, it’s now impossible to use CTRL-F to find numbers that you’d expect to have commas in them, and copy-pasting isn’t great either.
July 18, 2012 at 11:38#28862Just released maintenance version v380fx6 addresses the issue. Please give it a try.
July 26, 2012 at 21:34#28863@PD4ML wrote:
Just released maintenance version v380fx6 addresses the issue. Please give it a try.
I had similar problem and tried the version v380fx6 but it didn’t resolve it.
I was wondering if mine is related to the non-breaking space ?
My input HTML :
Test Number: 1X 999 999 99 9999 999 0 Reference Number(s): 99999400, 9999967, 999999300 Out put PDF:
Test
1X 999 999 99 9999 999 0
Number:Reference
99999400, 9999967, 999999300
Number:—-
Thanks for the help.July 27, 2012 at 11:50#28864PD4ML does not support
tag. And as I see the unsupported tag screens nowrap attribute, applied to a table cell. A current workaround is to remove
and to define nowrap for -
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.