Skip to content

v2.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Feb 15:25
· 57 commits to master since this release
v2.3.0
7bf4081

[2.3.0] - 2024-02-02

Added

  • If -o outputFile is specified, toc will write there even if the inputFile's toc is already up-to-date
  • Drastic performance improvements by reducing regex and list iterations
  • Support for rstudio foldable sections

Documentation

  • Added useful tools to CONTRIBUTING.md
  • Explaining better what _prettify_connector() does
  • Added code snippets to CONTRIBUTING.md

Fixed

  • Not stripping lines to preserve cobol indentation
  • Avoiding printing twice the same error or warning message

Performance

  • Simplified and explained _prettify_connectors()
  • Unified comment replacement in _replace_comment()
  • Defining toc multiline regex pattern once
  • Centralized file opening function
  • Storing toc pieces in lists until _generate_toc()

Testing

  • Added complex toc nexting
  • Added more unit tests to toc.py
  • Added check for missing reference file