diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-02-26 18:24:01 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-26 13:22:38 +0000 |
commit | 4d43131848c51c875e51985df5a5456f732adc09 (patch) | |
tree | e93b8854c527c78915d273d42defe5ff8bd403e4 /apps | |
parent | b053493245f7f0866b47a26480e35a56ee66e6e0 (diff) | |
download | mupdf-4d43131848c51c875e51985df5a5456f732adc09.tar.xz |
Reflow: Move from html output using tables to html output using div/span
The div/spans still use table style rendering, but it's simpler
code (and html) this way.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/mudraw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c index ed230aad..4226214d 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -749,10 +749,13 @@ int main(int argc, char **argv) if (showtext == TEXT_HTML) { fz_printf(out, "<style>\n"); - fz_printf(out, "body{background-color:gray;margin:12tp;}\n"); + fz_printf(out, "body{background-color:gray;margin:12pt;}\n"); fz_printf(out, "div.page{background-color:white;margin:6pt;padding:6pt;}\n"); fz_printf(out, "div.block{border:1px solid gray;margin:6pt;padding:6pt;}\n"); - fz_printf(out, "p{margin:0;padding:0;}\n"); + fz_printf(out, "div.metaline{display:table;width:100%%}\n"); + fz_printf(out, "div.line{display:table-row;padding:6pt}\n"); + fz_printf(out, "div.cell{display:table-cell;padding-left:6pt;padding-right:6pt}\n"); + fz_printf(out, "p{margin:0pt;padding:0pt;}\n"); fz_printf(out, "</style>\n"); fz_printf(out, "<body>\n"); } |