OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [PATCH] html: work around bug in html generation


Using texlive on Fedora 21, \url for some reason replaces
hypen - with -_ in html output only.

This is only a formatting issue: the link itself is correct.
For example:
<A HREF="http://docs.oasis-open.org";>
http://docs.oasis-_open.org</A>

I don't know why this happens, but it seems to go away if we
override - within urls inserting an mbox around it.
makeatletter \g@addto@macro\UrlSpecials{\do\-{\mbox{-}}}

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 virtio-html.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/virtio-html.tex b/virtio-html.tex
index 8775959..5adc518 100644
--- a/virtio-html.tex
+++ b/virtio-html.tex
@@ -55,7 +55,11 @@
 \titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
 \titleformat{\subparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}
 
-
+%Using texlive on Fedora 21, \url for some reason replaces
+%hypen - with -_ in html output only.
+%This seems to go away if we override - within urls inserting an
+%mbox around it.
+\makeatletter \g@addto@macro\UrlSpecials{\do\-{\mbox{-}}}
 
 % main document
 \input{main.tex}
-- 
MST


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]