Active
Project:
DITA integration for Drupal
Version:
6.x-1.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 16:21 UTC
Updated:
2 Nov 2011 at 21:48 UTC
Graphmind encodes spaces as %20 in the file output by Graphmind. The DITAmap is displayed on screen properly with a DITAmap view of
<?xml version="1.0"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
<map>
<title>Moose2</title>
<topichead>
<topicmeta>
<navtitle>Chapter 1</navtitle>
</topicmeta>
<topicref href="This-is-Task-1_7.dita"/>
</topichead>
</map>
However, the file provided as input to the DITA-OT has not been fully processed to change the %20 values back to spaces, and contains 'Chapter%201' in this example. The remaining strings in the DITAmap that I tried other than the navtitle do appear to be handled properly (not correct, see below regarding the title string).
An example of the PDF output for that string is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| CropperCapture[122].jpg | 12.3 KB | jjkd |
Comments
Comment #1
jjkd commentedNote that the title string also has the same behavior. When the graphmind map contains a space in the title field, it is not converted from %20 to a space character.
Comment #2
jjkd commentedAdded urldecode() in dita_graphmind.module, ala:
Seemed like the safest place. Tested, since graphmind also encodes a literal percent (%) as %25, I think this should be OK.
Comment #3
jjkd commentedProblem also present in Beta 5.
Comment #3.0
jjkd commentedAdded reference to similar problem with the title field.