From 86e51b41cb03025463e242d735048ffecbd6b7a2 Mon Sep 17 00:00:00 2001
From: mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>
Date: Thu, 5 Feb 2015 13:06:43 +0000
Subject: 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
---
 virtio-html.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'virtio-html.tex')

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}
-- 
cgit v1.2.3

