diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2015-02-05 13:06:43 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2015-02-05 13:06:43 +0000 |
commit | 86e51b41cb03025463e242d735048ffecbd6b7a2 (patch) | |
tree | c5de7b88a80e6c23ff24597ed64341b7655027dc /virtio-html.tex | |
parent | d9a174caf60557d91223707879d475b86a0cb8d6 (diff) |
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>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/branches/v1.0@474 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'virtio-html.tex')
-rw-r--r-- | virtio-html.tex | 6 |
1 files changed, 5 insertions, 1 deletions
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} |