Age | Commit message (Collapse) | Author |
|
The % symbol causes a printf format for %; which fails in musl, causing
the loop in dStr_vprintfa() to continue expading the buffer.
Fixes: https://github.com/dillo-browser/dillo/issues/429
|
|
Make the background of line numbers appear as a single color and
increase the contrast to improve readability. Also add a bit of
space and a separator line between the numbers and the code itself.
|
|
They allow linking to an specific line in the source code. This would be
useful to add to the bug meter view, so the user can quickly jump to the
error line in the HTML source.
Fixes: https://github.com/dillo-browser/dillo/issues/214
|
|
BTW, is there a point in using a monospaced font?
Besides it looks like code printing (which is good),
a proportional-spaced font may be easier to read.
|
|
Although not allowed in text contexts, null characters should not
stop/halt/fail dpi protocol, thus the patch.
Test Example. Display a file with these contents:
null padding^@^@
(two trailing null characters)
and view source for it.
Note that dillo will not _display_ the file completely correct,
it will eat a char after each null, but this is not a problem in
dpi nor dpip but in rendering, the cache gets it right.
Adding code to correctly _display_ these anomalous pages is probably
not worth the effort though.
|
|
|
|
|
|
|
|
|
|
|
|
This allows for custom styling of view source by adjusting
~/.dillo/style.css, e.g:
#dillo_vs {background-color: orange !important}
|
|
|
|
|
|
|
|
|
|
|
|
Now long lines don't wrap (a side effect of PRE). If a wrapping version is
preferred, it can be achieved by stuffing NBSP at the beginning of the line.
|
|
Also added better error handling.
|
|
|
|
|