Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

block_hyphenation_no-wrap.xml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. Regression check for an NPE in a block with no-wrap and hyphenation enabled.
  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="5in">
  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" wrap-option="no-wrap">
  34. line1
  35. line2
  36. line3
  37. </fo:block>
  38. </fo:flow>
  39. </fo:page-sequence>
  40. </fo:root>
  41. </fo>
  42. <checks>
  43. <!-- Dummy check. We don't want an NPE. -->
  44. <eval expected="1" xpath="count(//pageViewport)"/>
  45. </checks>
  46. </testcase>