|
|
2b6473 |
diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c
|
|
|
2b6473 |
--- paps-0.6.8.orig/src/paps.c 2007-04-13 14:04:14.000000000 +0900
|
|
|
2b6473 |
+++ paps-0.6.8/src/paps.c 2007-11-16 12:28:11.000000000 +0900
|
|
|
2b6473 |
@@ -723,9 +723,12 @@ split_text_into_paragraphs (PangoContext
|
|
|
2b6473 |
pango_layout_set_alignment (para->layout,
|
|
|
2b6473 |
page_layout->pango_dir == PANGO_DIRECTION_LTR
|
|
|
2b6473 |
? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
|
|
|
2b6473 |
- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
|
2b6473 |
-
|
|
|
2b6473 |
- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
|
2b6473 |
+ if (page_layout->do_wordwrap) {
|
|
|
2b6473 |
+ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
|
2b6473 |
+ pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
|
2b6473 |
+ } else {
|
|
|
2b6473 |
+ pango_layout_set_width (para->layout, -1);
|
|
|
2b6473 |
+ }
|
|
|
2b6473 |
para->height = 0;
|
|
|
2b6473 |
|
|
|
2b6473 |
result = g_list_prepend (result, para);
|
|
|
2b6473 |
@@ -754,9 +757,13 @@ split_text_into_paragraphs (PangoContext
|
|
|
2b6473 |
pango_layout_set_alignment (para->layout,
|
|
|
2b6473 |
page_layout->pango_dir == PANGO_DIRECTION_LTR
|
|
|
2b6473 |
? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
|
|
|
2b6473 |
- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
|
2b6473 |
+ if (page_layout->do_wordwrap) {
|
|
|
2b6473 |
+ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
|
2b6473 |
+ pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
|
2b6473 |
+ } else {
|
|
|
2b6473 |
+ pango_layout_set_width (para->layout, -1);
|
|
|
2b6473 |
+ }
|
|
|
2b6473 |
|
|
|
2b6473 |
- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
|
2b6473 |
para->height = 0;
|
|
|
2b6473 |
|
|
|
2b6473 |
last_para = next;
|