Skip to content

Commit 0c308f0

Browse files
committed
Fix <a/> issue in docs
1 parent 0c2fe3b commit 0c308f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tools/Generator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ private function getClassName(string $path) : string
382382

383383
private function formatDescription(string $description) : string
384384
{
385-
$description = str_replace('(/api_guide/', '(https://v3.developer.constantcontact.com/api_guide/', $description);
385+
// fix issues in documentation
386+
$description = str_replace(['(/api_guide/', '<a/>', 'href="/api_guide/'],
387+
['(https://v3.developer.constantcontact.com/api_guide/', '</a>', 'href="https://v3.developer.constantcontact.com/api_guide/'],
388+
$description);
386389
$lines = \explode("\n", $description);
387390
$blocks = [];
388391

0 commit comments

Comments
 (0)