View Full Version : Bizarre ADE bug with brackets

08-11-2010, 08:21 PM
I managed to waste over an hour today on one of the most bizarre bugs I've yet seen in ADE.

If a paragraph is centered (using text-align: center), contains a br tag, and the first character after the break is a left bracket ( (, {, or [ ) or an em-dash, then the text on that line will be shifted right by about 1em. The only way to prevent this is to ensure that the first displayed character on that line is something other than a left bracket/em-dash (inserting a character wrapped in a display:none span won't work).

This happens on both the current 1.72 version of Desktop ADE and on my PRS-505. I've attached an example epub that displays perfectly in other epub-renderers but fails in ADE.

I'll file a bug report about this, but we all know that the chances of Adobe actually fixing this are minuscule, so it's just something people will need to be aware of and work around.

08-11-2010, 09:14 PM
Sadly, confirmed.

We should seriously compile a list of ADE quirks.

08-12-2010, 06:37 AM
I had noticed some weird alignments in centered lines, which I thought were due to text-indent, but could not fix it. Then I read somewhere (probably some thread here) that ADE had this problem with brackets in centered lines, which explained the issues I had seen. Now I just ignore and hope for the best (that either ADE will be fixed or readers will use a different rendering software in the future)

08-12-2010, 08:09 AM
It only seems to happen after a br tag. E.g.
<p class="center">(gh)</p>
will render properly, whereas with
<p class="center">(gh)<br />(gh)</p>
the second line will be shifted to the right.

08-12-2010, 08:23 AM
Yes, your description is much more detailed than the blurred image I had in my mind :D