1 Star 0 Fork 22

wangchen/doxygen

forked from src-openEuler/doxygen 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Incorrect-label-name-in-case-regeneration-of-HTML-without_regeneration_of_dot_files.patch 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
sxt1001 提交于 2021-01-05 14:09 +08:00 . fix incorrect label in map of dot files in xhtml
From 939eca311ced62d9cb41d8e3c1acc207c99e09ed Mon Sep 17 00:00:00 2001
From: albert-github <albert.tests@gmail.com>
Date: Thu, 15 Oct 2020 13:06:23 +0200
Subject: [PATCH] Incorrect label / name in case regeneration of HTML without
regeneration of dot files
https://github.com/doxygen/doxygen/commit/de56d1864473485861bac89436337e8114fb2f6b
This is a further regression on #7840.
In case we regenerate the HTML files but not the image files based on dot we get incorrect labels for the id / name in the HTML output.
---
src/dotgraph.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp
index 55ea5ab..e1844b5 100644
--- a/src/dotgraph.cpp
+++ b/src/dotgraph.cpp
@@ -249,7 +249,7 @@ void DotGraph::generateCode(FTextStream &t)
t << "<img src=\"" << relImgName() << "\" border=\"0\" usemap=\"#" << correctId(getMapLabel()) << "\" alt=\"" << getImgAltText() << "\"/>";
if (!m_noDivTag) t << "</div>";
t << endl;
- if (m_regenerate || !insertMapFile(t, absMapName(), m_relPath, getMapLabel()))
+ if (m_regenerate || !insertMapFile(t, absMapName(), m_relPath, correctId(getMapLabel())))
{
int mapId = DotManager::instance()->
createFilePatcher(m_fileName.data())->
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchen2020/doxygen.git
git@gitee.com:wangchen2020/doxygen.git
wangchen2020
doxygen
doxygen
master

搜索帮助