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 /android/jni | |
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 'android/jni')
-rw-r--r-- | android/jni/mupdf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c index 122fc636..51bd1aa2 100644 --- a/android/jni/mupdf.c +++ b/android/jni/mupdf.c @@ -1316,6 +1316,9 @@ JNI_FN(MuPDFCore_textAsHtml)(JNIEnv * env, jobject thiz) fz_printf(out, "body{margin:0;}\n"); fz_printf(out, "div.page{background-color:white;}\n"); fz_printf(out, "div.block{margin:0pt;padding:0pt;}\n"); + fz_printf(out, "div.metaline{display:table;width:100%%}\n"); + fz_printf(out, "div.line{display:table-row;}\n"); + fz_printf(out, "div.cell{display:table-cell;padding-left:0.25em;padding-right:0.25em}\n"); //fz_printf(out, "p{margin:0;padding:0;}\n"); fz_printf(out, "</style>\n"); fz_printf(out, "<body style=\"margin:0\"><div style=\"padding:10px\" id=\"content\">"); |