You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

block_hyphenation_linefeed_preserve.xml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. Check for bug: Duplicate content and linefeeds as "#".
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="en" hyphenate="true">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="simple" page-height="5in" page-width="1in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="simple">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block line-height="10pt" background-color="orange"
  33. white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas semper. Proin at.</fo:block>
  34. <fo:block line-height="10pt" background-color="orange"
  35. white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve">
  36. line1
  37. line2
  38. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas semper. Proin at1.
  39. </fo:block>
  40. </fo:flow>
  41. </fo:page-sequence>
  42. </fo:root>
  43. </fo>
  44. <checks>
  45. <!-- Dummy check. We don't want an NPE. -->
  46. <eval expected="2" xpath="count(//*[contains(text(), 'adipiscing')])"/>
  47. </checks>
  48. </testcase>