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.

CommentFileSizeAuthor
CropperCapture[122].jpg12.3 KBjjkd

Comments

jjkd’s picture

Note 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.

jjkd’s picture

Added urldecode() in dita_graphmind.module, ala:

  $xml_string = urldecode(dita_apply_xslt($freemind_map, file_get_contents($xslt_url)));

Seemed like the safest place. Tested, since graphmind also encodes a literal percent (%) as %25, I think this should be OK.

jjkd’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta5

Problem also present in Beta 5.

jjkd’s picture

Issue summary: View changes

Added reference to similar problem with the title field.