Skip to content

New line at end of map required when multiple topic maps are used #166

@gabriel-ocp

Description

@gabriel-ocp

If you do not leave a blank line at the end of each topic map, it seems that when they are merged into the temporary file, the build will fail.

This can be rectified by adding in a new line after each map is read, in the merge code:

lib/ascii_binder/engine.rb:

    # topic map files are in the _topic_maps folder

    # create a combined temp file with all topic maps
    tf = Tempfile.new("#{TOPIC_MAP_FILENAME}")

    Dir.glob("#{topic_map_folder}/*.yml").each do |filename|
      lines = IO.read(filename)
      tf << lines
      tf.write "\n"
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions