Skip to content

Commit

Permalink
[documentation] Minor fixup [#95]
Browse files Browse the repository at this point in the history
  • Loading branch information
cipriancraciun committed Jun 29, 2018
1 parent 522709c commit 7dce385
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/tools_documentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,11 @@ pub fn dump_cmark (libraries : Libraries, stream : &mut dyn io::Write) -> (Outco
try_writeln! (stream);
for appendix in library.appendices () {
let appendix_anchor = try! (generate_anchor (Some ("appendix"), Some (library.identifier ()), Some (appendix.identifier ())));
try_writeln! (stream, "* [`{}`](#{});", appendix.identifier (), appendix_anchor);
if let Some (title) = appendix.title () {
try_writeln! (stream, "* [`{}`](#{}) -- {};", appendix.identifier (), appendix_anchor, title);
} else {
try_writeln! (stream, "* [`{}`](#{});", appendix.identifier (), appendix_anchor);
}
}

try_writeln! (stream);
Expand Down

0 comments on commit 7dce385

Please sign in to comment.