Red Hat Bugzilla – Bug 745304
email tag followed by punctuation results in an extra space that cannot be removed
Last modified: 2015-01-04 17:36:48 EST
Description of problem:
Not sure if this can be fixed in Publican. If punctuation (I only tried : and
,) is used after the email tag, a space is added that cannot be removed.
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Workstation release 6.1 (Santiago)
Always, for me.
Steps to Reproduce:
1. use a . or a : after an email tag, for example:
Email <email>email@example.com</email>. to
End of the line <email>firstname.lastname@example.org</email>.(\n)
2. Build with the common brand in the txt, html, html-single, and pdf formats.
Email email@example.com . to
End of the line firstname.lastname@example.org .
Email email@example.com. to
End of the line firstname.lastname@example.org.
No newline after email when inline!
Applied fix to branches/publican-2x and trunk.
Committed revision 1917.
I put the lines into another document, and the problem still exists
I have a similar problem with the git version of 27th march of this year. So whatever was the fix that got committed, it's not enough yet.
In my case, I saw it in a build of a translation. And the problem is really that it inserts a spurious newline but also tabs to indent the content.
Created attachment 581063 [details]
Patch to restore mixed mode on email tag
Please find attached a patch that fixes the issue by restoring the mixed_mode attribute that was present in publican 2.9 but was lost in publican 3.0.
Confirm mixed_mode lost during code merge.
5000dcf..2e04033 master -> master
create book, include body text that is inside an email tag. follow the email tag with punctuation, build book, hope that ther eis no space between email tag and punctuation.
Verified on publican-3.0-0.fc17.t179, in both PDF and HTML formats extra space is no longer inserted in output between <email>...</email> tags and following punctuation.