diff options
author | Charles.Lee <cheoljoo@gmail.com> | 2018-08-19 16:27:27 (GMT) |
---|---|---|
committer | Charles.Lee <cheoljoo@gmail.com> | 2018-08-19 16:27:27 (GMT) |
commit | cbb0ae9a02305e0464737b316abd35e8e6d7c1a2 (patch) | |
tree | 2bf1482c7b3ece9f85af9cdabc678ee84e5f32cb /src/plantuml.cpp | |
parent | cf5f1ed593fefcef2cceee69dec44e7daa5e8c12 (diff) | |
download | Doxygen-cbb0ae9a02305e0464737b316abd35e8e6d7c1a2.zip Doxygen-cbb0ae9a02305e0464737b316abd35e8e6d7c1a2.tar.gz Doxygen-cbb0ae9a02305e0464737b316abd35e8e6d7c1a2.tar.bz2 |
Bug fix for plantuml
# What is the problem
- The following plantuml is not processed.
```
/**
* @brief Clear the rule.
* @startuml
* participant CReceiver
* opt MsgFromSender()
* alt cmd=IGN_STATUS_IN && value == 0
* alt
* CReceiver ->> CHmi : Draw_HMI sendMsg() -> sendMessage(HMI,MSGIDN,...)
* else
* note right CReceiver : Draw Directly
* end
* else
* note right CReceiver : mbBlockDraw = false
* end
* end
* @enduml
*/
```
# debugging method
- change into DOT_CLEANUP = NO in Doxyfile to remain the plantuml file for debugging.
- the following context is result of remaining plantuml file.
```
@startuml
participant CReceiver
opt MsgFromSender()
alt cmd=IGN_STATUS_IN && value == 0
alt
CReceiver ->> CHmi : Draw_HMI sendMsg() -> sendMessage(HMI,MSGIDN,...)
else
note right CReceiver : Draw Directly
end
else
note right CReceiver : mbBlockDraw = false
end
end@enduml
```
# Solution
- add return in front of @enduml
Diffstat (limited to 'src/plantuml.cpp')
-rw-r--r-- | src/plantuml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plantuml.cpp b/src/plantuml.cpp index 89e6e9e..ada035b 100644 --- a/src/plantuml.cpp +++ b/src/plantuml.cpp @@ -47,7 +47,7 @@ QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,con } QCString text = "@startuml\n"; text+=content; - text+="@enduml\n"; + text+="\n@enduml\n"; file.writeBlock( text, text.length() ); file.close(); return baseName; |