document and fix linkmap underscore issue
authorchrysn <chrysn@web>
Thu, 15 Mar 2012 13:55:52 +0000 (09:55 -0400)
committeradmin <admin@branchable.com>
Thu, 15 Mar 2012 13:55:52 +0000 (09:55 -0400)
doc/bugs/linkmap_displays_underscore_escapes.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/linkmap_displays_underscore_escapes.mdwn b/doc/bugs/linkmap_displays_underscore_escapes.mdwn
new file mode 100644 (file)
index 0000000..4393e1a
--- /dev/null
@@ -0,0 +1,14 @@
+[[ikiwiki/directive/linkmap]]s display the file name instead of the pagetitle, showing unsightly underscore escapes and underscores instead of blanks to users.
+
+the attached [[!taglink patch]] fixes this; from its commit message:
+
+    display the pagetitle() in linkmaps
+    
+    without this patch, linkmaps display underscores and underscore escape
+    sequences in the rendered output.
+    
+    this introduces a pageescape function, which invoces pagetitle() to get
+    rid of underscore escapes and wraps the resulting utf8 string
+    appropriately for inclusion in a dot file (using dot's html encoding
+    because it can represent the '\"' dyad properly, and because it doesn't
+    need special-casing of newlines).