[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ulink urls in Docbook need to be html-escaped.
From: |
Per Bothner |
Subject: |
Ulink urls in Docbook need to be html-escaped. |
Date: |
Sat, 05 Feb 2005 00:57:55 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
An '&' in a uref needs to be escaped in Docbook, when it
becomes a url attribute in a ulink element.
I don't know if the attached patch is the right fix, but it
seems to work.
--
--Per Bothner
address@hidden http://per.bothner.com/
2005-02-05 Per Bothner <address@hidden>
* makeinfo/xref.c (cm_uref): Ulink urls in Docbook need to be
html-escaped.
--- xref.c~ 2004-12-21 09:28:35.000000000 -0800
+++ xref.c 2005-02-05 00:50:33.128597754 -0800
@@ -495,7 +495,7 @@ cm_uref (int arg)
if (docbook)
{
xml_insert_element_with_attribute (UREF, START, "url=\"%s\"",
- text_expansion (url));
+ maybe_escaped_expansion (url, 0,
1));
if (*replacement)
execute_string ("%s", replacement);
else if (*desc)
- Ulink urls in Docbook need to be html-escaped.,
Per Bothner <=