mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
Fixed creation of command reference in manual
This commit is contained in:
parent
e0ff4d1152
commit
a779a09771
3 changed files with 16 additions and 9 deletions
|
@ -545,11 +545,10 @@ struct HelpPass : public Pass {
|
|||
}
|
||||
void escape_tex(std::string &tex)
|
||||
{
|
||||
size_t pos = 0;
|
||||
while ((pos = tex.find('_', pos)) != std::string::npos) {
|
||||
for (size_t pos = 0; (pos = tex.find('_', pos)) != std::string::npos; pos += 2)
|
||||
tex.replace(pos, 1, "\\_");
|
||||
pos += 2;
|
||||
}
|
||||
for (size_t pos = 0; (pos = tex.find('$', pos)) != std::string::npos; pos += 2)
|
||||
tex.replace(pos, 1, "\\$");
|
||||
}
|
||||
void write_tex(FILE *f, std::string cmd, std::string title, std::string text)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue