summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-08 09:20:30 +0100
committerSebastian Geerken <devnull@localhost>2012-11-08 09:20:30 +0100
commit2f9834507ff751f177c6fa218cc5849107a61aa8 (patch)
tree370c3c99762d83db27dd211d8ab4dbbffc609a24
parent1500574f71711a62c6eb98e73e30c3ca678aee4c (diff)
Line breaking allowed for WHITE_SPACE_PRE_WRAP.
-rw-r--r--dw/textblock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 0ba5a4b2..00edf418 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1685,12 +1685,12 @@ void Textblock::setBreakOption (Word *word, core::style::Style *style)
switch (style->whiteSpace) {
case core::style::WHITE_SPACE_NORMAL:
case core::style::WHITE_SPACE_PRE_LINE:
+ case core::style::WHITE_SPACE_PRE_WRAP:
word->badnessAndPenalty.setPenalty (0);
break;
case core::style::WHITE_SPACE_PRE:
case core::style::WHITE_SPACE_NOWRAP:
- case core::style::WHITE_SPACE_PRE_WRAP:
word->badnessAndPenalty.setPenaltyProhibitBreak ();
break;
}