-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix element map so changelog rows are handled correctly (#146)
- Loading branch information
Showing
8 changed files
with
154 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--TEST-- | ||
GH-87 Broken links for constants in table rows | ||
--FILE-- | ||
<?php | ||
namespace phpdotnet\phd; | ||
|
||
require_once __DIR__ . "/setup.php"; | ||
|
||
$xml_file = __DIR__ . "/data/bug_GH-87.xml"; | ||
|
||
$config->setForce_index(true); | ||
$config->setXml_file($xml_file); | ||
|
||
$indexRepository = new IndexRepository(new \SQLite3(":memory:")); | ||
$indexRepository->init(); | ||
$config->set_indexcache($indexRepository); | ||
|
||
$index = new TestIndex($indexRepository, $config); | ||
|
||
$render = new TestRender(new Reader, $config, null, $index); | ||
|
||
$render->run(); | ||
|
||
$render = new TestRender(new Reader, $config); | ||
|
||
$format = new TestGenericChunkedXHTML($config); | ||
|
||
$render->attach($format); | ||
|
||
$render->run(); | ||
|
||
?> | ||
--EXPECT-- | ||
Filename: constants.html | ||
Content: | ||
<div id="constants" class="chapter"> | ||
<div class="section"> | ||
<p class="para">Constant within a table (GH-87)</p> | ||
<p class="para"> | ||
<table class="doctable informaltable"> | ||
|
||
<thead> | ||
<tr> | ||
<th>Header</th> | ||
</tr> | ||
|
||
</thead> | ||
|
||
<tbody class="tbody"> | ||
<tr id="constant.defined"> | ||
<td><strong><code>CONSTANT_IS_DEFINED</code></strong></td> | ||
</tr> | ||
|
||
</tbody> | ||
|
||
</table> | ||
|
||
</p> | ||
</div> | ||
<div class="section"> | ||
<p class="para"> | ||
<a href="constants.html#constant.defined" class="link">CONSTANT_IS_DEFINED</a> | ||
</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<chapter xml:id="constants"> | ||
<section> | ||
<para>Constant within a table (GH-87)</para> | ||
<para> | ||
<informaltable> | ||
<tgroup cols="1"> | ||
<thead> | ||
<row> | ||
<entry>Header</entry> | ||
</row> | ||
</thead> | ||
<tbody> | ||
<row xml:id="constant.defined"> | ||
<entry><constant>CONSTANT_IS_DEFINED</constant></entry> | ||
</row> | ||
</tbody> | ||
</tgroup> | ||
</informaltable> | ||
</para> | ||
</section> | ||
<section> | ||
<para> | ||
<link linkend="constant.defined">CONSTANT_IS_DEFINED</link> | ||
</para> | ||
</section> | ||
</chapter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters