11 Commits

Author SHA1 Message Date
remLse 6b8d2b5d66 rtf: don't ignore lines less than 5 characters long (#91)
It looks like the original author of this function intended to do a bounds check
on the line variable before checking if it has the `### ` prefix. Instead, we can
just use `strings.HasPrefix` which also means that shorter lines are now 
included in the output.

Co-authored-by: Remo Senekowitsch <remo.senekowitsch@icloud.com>
2021-04-12 19:49:41 +10:00
Hamish d37fc7c11e support windows temp directories 2020-06-11 14:40:40 -07:00
David Howden 3dad0cb02c fix golint issues
Documentation still needs a lot of work.
2017-06-26 12:16:32 +10:00
Hamish f8faf6b7ad Change meta to pass back all original meta 2017-05-01 20:44:39 +10:00
David Howden 94a2d4dc93 Refactor code into library.
Binary now built from subpackage docconv.
2015-08-10 23:17:50 +10:00
David Howden 359f7b0818 Return errors from ConvertRTF. 2015-08-10 09:48:20 +10:00
David Howden e1b0968d79 Updated PDF and RTF converters to use LocalFile.
Avoids unnecessarily creating copies of local files.
2015-08-09 17:29:26 +10:00
David Howden b6e6e9b3bb More refactoring to use more Go-idiomatic naming. 2015-08-09 17:14:36 +10:00
David Howden a5dd08375c Refactor method names to better follow standard Go conventions. 2015-08-09 16:15:43 +10:00
Hamish 0e66dfc523 go fmt (overdue!) 2015-01-31 13:34:36 +11:00
Hamish ec8de20751 Initial code commit. Works for all document types 2013-11-01 15:31:50 +11:00