aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* utf8: fix testRafael G. Martins2016-07-041-1/+1
|
* utf8: fix test data typeRafael G. Martins2016-07-041-3/+3
|
* utf8: skip BOM, if foundRafael G. Martins2016-07-041-1/+21
|
* blogc: added utf8 validationRafael G. Martins2016-07-031-0/+83
|
* template-parser: minor fixRafael G. Martins2016-07-031-1/+1
|
* Revert "error: improved parser error reporting"Rafael G. Martins2016-07-033-132/+61
| | | | | | this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03.
* error: improved parser error reportingRafael G. Martins2016-07-033-61/+132
| | | | | | now it shows a visual indicator '^' pointing to the position of the error, in the line after the error message. should be helpful for users writing templates, if any.
* template-parser: fixed error messageRafael G. Martins2016-07-031-1/+1
|
* template-parser: renderer: implemented 'else' support in templatesRafael G. Martins2016-07-032-9/+330
| | | | | | | | | yeah, this is stupid. after more than 320 commits and 26 releases, we finally support the 'else' statement in the template engine. I don't know if I'm dumb or what, but it took me that long to find a "simple" solution to this basic issue. yep, no more `{% ifdef FOO %}...{% endif %}{% ifndef FOO %}...{% endif %}` blocks. but seriously, who cares?! :/
* content-parser: fixed testsRafael G. Martins2016-06-291-6/+6
|
* content-parser: added more line break testsRafael G. Martins2016-06-291-0/+8
|
* content-parser: rewrote inline parser.Rafael G. Martins2016-06-292-34/+161
| | | | parser is stricter now, and won't produce invalid HTML anymore.
* renderer: added support to truncate variables.Rafael G. Martins2016-05-301-0/+28
| | | | this commit also documents variable formatters properly.
* content-parser: encode HTML entities in DESCRIPTION variableRafael G. Martins2016-05-241-0/+3
|
* content-parser: fixed DESCRIPTION variable.Rafael G. Martins2016-05-231-5/+50
| | | | | | | | | it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph.
* content-parser: do not use paragraphs inside blockquote for DESCRIPTIONRafael G. Martins2016-05-221-4/+4
|
* remove squareball for goodRafael G. Martins2016-04-276-6/+6
|
* moved squareball back to blogc source tree.Rafael G. Martins2016-04-272-1/+960
| | | | | | | i don't have enough time to maintain a separated library at this point, and worry about soname bump, library stability, etc. all the code is trivial enough to be copied around, and all the utils are implemented as single file now, to make it easier to copy.
* Revert "*: use squareball error infrastructure"Rafael G. Martins2016-04-276-321/+321
| | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4.
* Revert "error: removed uneeded tests"Rafael G. Martins2016-04-271-0/+24
| | | | This reverts commit 37592b57b31987519e59117d49bccd0207e67f15.
* content-parser: extract post description from contentRafael G. Martins2016-04-203-94/+367
| | | | | | | | | description is the first line of the first paragraph parsed from content file. users can override it declaring DESCRIPTION variable in source file itself. this also fixes a bug with line endings when using single line blockquotes.
* content-parser: do not convert -- and --- to &ndash and &mdash inside codeRafael G. Martins2016-04-171-0/+31
|
* error: removed uneeded testsRafael G. Martins2016-03-131-24/+0
|
* *: use squareball error infrastructureRafael G. Martins2016-03-136-321/+321
|
* content-parser: fixed em/en-dash logicRafael G. Martins2016-03-051-8/+8
|
* content-parser: fixed a bug in previous patchRafael G. Martins2016-03-051-4/+4
|
* content-parser: convert -- and --- to &ndash and &mdashRafael G. Martins2016-03-051-6/+26
|
* build: replace src/utils with squareballRafael G. Martins2016-02-267-1408/+529
|
* man: tests: minor documentation fix and more test coverageRafael G. Martins2016-02-211-0/+9
|
* content-parser: added more testsRafael G. Martins2016-02-211-0/+15
|
* content-parser: added more testsRafael G. Martins2016-02-211-0/+12
|
* content-parser: fixed parser bug when handling linksRafael G. Martins2016-02-211-0/+12
| | | | | | do not handle something like this as a valid link: [asd] asd (asd)
* content-parser: fixed bug that parsed text with '!' + link as imageRafael G. Martins2016-02-131-0/+14
|
* renderer: fix bug when 'if' evals to false after 'if' evals to trueRafael G. Martins2016-01-251-0/+32
|
* content-parser: encode html entities found in code blocks (fixes #3)Rafael G. Martins2016-01-221-4/+16
|
* template-parser: added whitespace cleaners. needs more tests and docsRafael G. Martins2016-01-142-14/+89
|
* fixed copyrightRafael G. Martins2016-01-088-8/+8
|
* renderer: handle FOREACH_ITEM as a normal variableRafael G. Martins2016-01-081-4/+52
|
* renderer: improved foreach testsRafael G. Martins2016-01-041-2/+8
|
* loader: parse tags as space-separated stringRafael G. Martins2015-12-291-2/+2
|
* renderer: foreach variables should be splitted in spaces rather than commasRafael G. Martins2015-12-291-5/+5
|
* template-parser: do not accept variables startins with numbers and _Rafael G. Martins2015-12-291-1/+73
|
* man: renderer: template-parser: added foreach iterator supportRafael G. Martins2015-12-292-9/+182
|
* Revert "build: removing src/utils and replacing with squareball"Rafael G. Martins2015-12-237-488/+1312
| | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646.
* build: removing src/utils and replacing with squareballRafael G. Martins2015-12-237-1312/+488
| | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils
* content-parser: random parser fixesRafael G. Martins2015-11-041-4/+30
|
* Revert "content-parser: added basic rst-like directives support"Rafael G. Martins2015-11-041-616/+4
| | | | This reverts commit 1faa52052624e7c03256df0c63c43f5d40ddb57a.
* Revert "content-parser: fix memory leak in gcc"Rafael G. Martins2015-11-041-5/+3
| | | | This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746.
* Revert "content-parser: allow directive params with variable prefix"Rafael G. Martins2015-11-041-42/+5
| | | | This reverts commit d29c85ef1751cb46c579b3292f676605d9f86951.
* content-parser: allow directive params with variable prefixRafael G. Martins2015-11-031-5/+42
|