/[drupal]/contributions/modules/export_docbook/export_docbook.module
ViewVC logotype

Diff of /contributions/modules/export_docbook/export_docbook.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.2.23, Mon Sep 15 18:29:34 2008 UTC revision 1.5.2.24, Fri Sep 26 12:22:04 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: export_docbook.module,v 1.5.2.22 2008/09/13 22:21:59 robertDouglass Exp $  // $Id: export_docbook.module,v 1.5.2.23 2008/09/15 18:29:34 robertDouglass Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 343  function export_docbook_convert($xhtml) Line 343  function export_docbook_convert($xhtml)
343    
344  function export_docbook_replace_placeholders($content) {  function export_docbook_replace_placeholders($content) {
345    // Now we undo the [[para]][[/para]] processing hack that we perpetrated in the XSLT    // Now we undo the [[para]][[/para]] processing hack that we perpetrated in the XSLT
346    $content = preg_replace('/\[\[para\]\]\[\[\/para\]\]/', "\n", $content);    $content = preg_replace('/\[\[para\]\]\s*\[\[\/para\]\]/', '', $content);
347    $content = preg_replace('/\[\[para\]\]/', '<para>', $content);    $content = preg_replace('/\[\[para\]\]/', '<para>', $content);
348    $content = preg_replace('/\[\[\/para\]\]/', '</para>', $content);    $content = preg_replace('/\[\[\/para\]\]/', '</para>', $content);
349    return $content;    return $content;

Legend:
Removed from v.1.5.2.23  
changed lines
  Added in v.1.5.2.24

  ViewVC Help
Powered by ViewVC 1.1.2