aboutsummaryrefslogtreecommitdiff
path: root/badroff.c
AgeCommit message (Collapse)Author
2020-06-15oops used high = len, not high = max in cmd searchHEADmasterHolden Rohrer
2020-06-15robust wsaddHolden Rohrer
2020-06-15added indentation modeHolden Rohrer
2020-05-29badroff can now handle tiny widthsHolden Rohrer
2020-05-29badroff leader errorsHolden Rohrer
2020-05-29foldlines handles unfoldable lines, merge improved greatlyHolden Rohrer
2020-05-29moved accumlines to make foldlines closer to multbreakHolden Rohrer
2020-05-29fixed freenext bugHolden Rohrer
the function in its original form meant that multbreak wouldn't check the node following the freed node like others.
2020-05-29centralized wsclean/norm use w/ better .MRGHolden Rohrer
2020-05-28made more robust against user inputHolden Rohrer
2020-05-28improved error handling and ignorance of trailing wsHolden Rohrer
2020-05-27made global objects static to clean namespaceHolden Rohrer
2020-05-25ZERO VALGRIND ERRORS!Holden Rohrer
I was accidentally checking for a zero byte in already ended strings in the row-col loop of foldlines
2020-05-25fixed accumlines multiline handlingHolden Rohrer
the splitting of a string by lines isn't done by replacing \n with \0 but by replacing the char after (with a bit of restructuring)
2020-05-25changed strtok to a custom token()Holden Rohrer
2020-05-25minor memory leakageHolden Rohrer
multiple twobytes returns require a single array that isn't on the heap but automatically allocated. removed printf's and freed some "" lines.
2020-05-24removed twobytes memory leakHolden Rohrer
2020-05-24wsclean clarified (i think)Holden Rohrer
2020-05-18accumlines now handles multilineHolden Rohrer
2020-05-18moved folding logic away from lineset, starting to generalizeHolden Rohrer
2020-05-18Removed an unnecessary goto and 3 linesHolden Rohrer
2020-05-13added badroff nbsp and mergeHolden Rohrer
2020-05-12Added .LSHolden Rohrer
Did a lot of code cleanup on the way because I was trying to find a bug in the new code, but it was actually in the handling of multiline inputs to wordset (now fixed). sb.* added for correct memory allocation in lineset, which, did I mention, now works. Makefile has been updated, and phrase-circuit.src can now handle line widths of about 50.
2020-04-02added vert() and simplified wordset() frameworkHolden Rohrer
2020-04-01badroff has slightly erring .LS && typeset cleanupHolden Rohrer
Two lines can break at different spots and create incorrect images; nonbreaking spaces may need to be added for this.
2020-04-01partial migration of typesetHolden Rohrer
2020-04-01migrated typesetHolden Rohrer
typeset() now relies on a one line at a time approach; the current version does have some bugs, though (poor handling of large spaces, EOL whitespace)
2020-03-31added leader commandHolden Rohrer
2020-03-31fixed double spacing on empty linesHolden Rohrer
2020-03-31added new .FIL cmd and fixed lots of typeset bugsHolden Rohrer
2020-03-31memory fixesHolden Rohrer
memchr(3) is now used in chr(n)fill, and strings mostly get freed after use. This should cut down on memory usage.
2020-03-31fixed some memory leaks and created typeset() for !brkHolden Rohrer
2020-03-31a partial attempt at typesettingHolden Rohrer
2020-03-30slight reorganization of badroff.cHolden Rohrer
2020-03-30added setwidthHolden Rohrer
2020-03-30general fn call interfaceHolden Rohrer
2020-03-30minor changes and actually exiting w/ return codeHolden Rohrer
2020-03-30removed sb.*Holden Rohrer
2020-03-30added center cmd to badroffHolden Rohrer
2020-03-30cmd and typeset framework addedHolden Rohrer
2020-03-28minor badroff.c updateHolden Rohrer
2020-03-28initial commitHolden Rohrer