fixed escape sequences
This commit is contained in:
parent
5f92d01605
commit
72426b7554
|
@ -95,7 +95,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
|
||||||
// We have a new section to start
|
// We have a new section to start
|
||||||
if($entry['tag'] == "SECTION" && $entry['type'] == "open") {
|
if($entry['tag'] == "SECTION" && $entry['type'] == "open") {
|
||||||
$name = $entry['attributes']['NAME'];
|
$name = $entry['attributes']['NAME'];
|
||||||
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) {
|
if(preg_match("/^_[a-zA-Z_]+/",$name)) {
|
||||||
$section_headline = getSectionHeadline($entries[substr($name,1)][0]);
|
$section_headline = getSectionHeadline($entries[substr($name,1)][0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -486,7 +486,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php
|
<?php
|
||||||
// Section headline is a value entry
|
// Section headline is a value entry
|
||||||
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) {
|
if(preg_match("/^_[a-zA-Z_]+/",$name)) {
|
||||||
?>
|
?>
|
||||||
<select name="section_<?php echo $key;?>">
|
<select name="section_<?php echo $key;?>">
|
||||||
<!-- <?php echo $section_items;?> -->
|
<!-- <?php echo $section_items;?> -->
|
||||||
|
@ -517,7 +517,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
|
||||||
}
|
}
|
||||||
// We have a section to end
|
// We have a section to end
|
||||||
elseif($entry['tag'] == "SECTION" && $entry['type'] == "close") {
|
elseif($entry['tag'] == "SECTION" && $entry['type'] == "close") {
|
||||||
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) {
|
if(preg_match("/^_[a-zA-Z_]+/",$name)) {
|
||||||
$section_headline = substr($name,1);
|
$section_headline = substr($name,1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue