aboutsummaryrefslogtreecommitdiffstats
path: root/src/DefaultStyle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/DefaultStyle.c')
-rw-r--r--src/DefaultStyle.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/DefaultStyle.c b/src/DefaultStyle.c
index 770b4919..f1716e9c 100644
--- a/src/DefaultStyle.c
+++ b/src/DefaultStyle.c
@@ -7,6 +7,7 @@
#include <HTFont.h>
#include <HTStyle.h>
+#include <LYGlobalDefs.h>
#include <LYLeaks.h>
/* Tab arrays:
@@ -462,6 +463,11 @@ HTStyleSheet *DefaultStyle(HTStyle ***result_array)
for (p = sheet.styles; p != 0; p = p->next) {
q = HTStyleNew();
*q = *p;
+ if (no_margins) {
+ q->indent1st = 0;
+ q->leftIndent = 0;
+ q->rightIndent = 0;
+ }
st_array[q->id] = q;
q->next = result->styles;
result->styles = q;
@@ -473,6 +479,11 @@ HTStyleSheet *DefaultStyle(HTStyle ***result_array)
HTStyle *r = q->next;
*q = *p;
+ if (no_margins) {
+ q->indent1st = 0;
+ q->leftIndent = 0;
+ q->rightIndent = 0;
+ }
st_array[q->id] = q;
q->next = r;
}