1. 13 Mar, 2020 2 commits
  2. 05 Jan, 2020 1 commit
  3. 18 Oct, 2019 1 commit
  4. 11 Sep, 2019 1 commit
  5. 16 Aug, 2019 1 commit
    • Zandr Martin's avatar
      fix bug preventing indented literal blocks · 5c782cda
      Zandr Martin authored and Drew DeVault's avatar Drew DeVault committed
      This commit fixes a bug in parsing indented literal blocks. For example:
      
      test(8)
      
      	```
      	This is a block
      	```
      
      Prior to this commit, this would fail, but with an unexpected error
      message: "Error at 4:3: Cannot deindent in literal block". The
      indentation was being parsed at every character, so the parser saw the
      `T`, then parsed indentation again. The indentation was 0 (since there
      were no tab characters between the `T` and the `h`), but the block
      started with an indentation level of 1. 0 < 1, so this would be
      considered a dedent, which is not allowed.
      
      This commit introduces a new local variable, `check_indent`, which
      controls whether the parser tries to parse indentation or not; now
      indentation is only parsed when the last character was a newline. From
      my testing this seems to fix the issue - indented literal blocks are now
      allowed.
      5c782cda
  6. 07 Aug, 2019 1 commit
  7. 10 Jul, 2019 1 commit
  8. 08 Jul, 2019 1 commit
  9. 07 Jul, 2019 3 commits
  10. 01 Mar, 2019 1 commit
    • Brian Ashworth's avatar
      parse_text: return if next is UTF8_INVALID · 0d731c6a
      Brian Ashworth authored and Drew DeVault's avatar Drew DeVault committed
      
      
      In the underscore case, the next character is retrieved to check
      whether the underscore is at a word break. However, if this character
      is UTF8_INVALID, the call to parser_pushch will be a noop. This
      results in the loop continuing on further than it should. This just
      adds a check to see if next is UTF8_INVALID and returns if it is.
      Signed-off-by: Brian Ashworth's avatarBrian Ashworth <bosrsf04@gmail.com>
      0d731c6a
  11. 28 Feb, 2019 1 commit
    • Carlo Abelli's avatar
      fix underscores in underlined words · f1db2e16
      Carlo Abelli authored and Drew DeVault's avatar Drew DeVault committed
      Currently, the first underscore encountered while underlining ends
      underlining. As a result, underscores in underlined words are not
      ignored e.g. _hello_world_ does not parse correctly.
      
      This checks the next character to see if it is still in a word before
      ending underlining.
      f1db2e16
  12. 12 Feb, 2019 1 commit
    • Birger Schacht's avatar
      Replace localtime with gmtime · 74ab6566
      Birger Schacht authored and Drew DeVault's avatar Drew DeVault committed
      The localtime() function gives the time relative to the users time.
      This makes the generated manpage non reproducible. gmtime() gives
      the time as UTC.
      74ab6566
  13. 07 Feb, 2019 1 commit
  14. 05 Feb, 2019 1 commit
  15. 30 Jan, 2019 1 commit
  16. 27 Jan, 2019 2 commits
  17. 02 Jan, 2019 1 commit
  18. 21 Nov, 2018 1 commit
  19. 17 Nov, 2018 1 commit
  20. 07 Nov, 2018 1 commit
  21. 06 Nov, 2018 1 commit
  22. 18 Oct, 2018 1 commit
  23. 07 Oct, 2018 5 commits
  24. 06 Sep, 2018 1 commit
  25. 13 Jul, 2018 1 commit
    • Richard Bradfield's avatar
      Support extra2 and extra3 in title section · 0fabc9bb
      Richard Bradfield authored
      The groff .TH title/section macro additionally supports extra arguments:
      
      .TH title section [extra1 [extra2 [extra3]]]
      
      Extra2 and Extra3 allow changing the left footer and central header
      respectively.
      
      Here we allow the user to specify these fields through an optional
      extension to the preamble:
      
      test(8) "LeftFooter"
      test(8) "LeftFooter" "CenterHeader"
      test(8) "" "CenterHeader"
      0fabc9bb
  26. 29 May, 2018 1 commit
  27. 16 May, 2018 1 commit
  28. 14 May, 2018 5 commits