Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
require_once(HTML2PS_DIR.'inline.content.builder.php');
4
 
5
class InlineContentBuilderNowrap extends InlineContentBuilder {
6
  function InlineContentBuilderNowrap() {
7
    $this->InlineContentBuilder();
8
  }
9
 
10
  /**
11
   * CSS 2.1, p 16.6
12
   * white-space: nowrap
13
   * This value collapses whitespace as for 'normal', but suppresses line breaks within text
14
   */
15
  function build(&$box, $raw_content, &$pipeline) {
16
    $raw_content = $this->remove_leading_linefeeds($raw_content);
17
    $raw_content = $this->remove_trailing_linefeeds($raw_content);
18
    $box->process_word($this->collapse_whitespace($raw_content), $pipeline);
19
  }
20
}
21
 
22
?>