Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
376cb74c
Commit
376cb74c
authored
Aug 27, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 706874 - Doxygen crash if missing new-line in a snippet
parent
c375fe1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
util.cpp
src/util.cpp
+7
-1
No files found.
src/util.cpp
View file @
376cb74c
...
...
@@ -7682,6 +7682,7 @@ QCString extractBlock(const QCString text,const QCString marker)
p
=
i
+
1
;
}
l1
=
p
;
int
lp
=
i
;
if
(
found
)
{
while
((
i
=
text
.
find
(
'\n'
,
p
))
!=-
1
)
...
...
@@ -7692,10 +7693,15 @@ QCString extractBlock(const QCString text,const QCString marker)
break
;
}
p
=
i
+
1
;
lp
=
i
;
}
}
if
(
l2
==-
1
)
// marker at last line without newline (see bug706874)
{
l2
=
lp
;
}
//printf("text=[%s]\n",text.mid(l1,l2-l1).data());
return
text
.
mid
(
l1
,
l2
-
l1
);
return
l2
>
l1
?
text
.
mid
(
l1
,
l2
-
l1
)
:
QCString
(
);
}
/** Returns a string representation of \a lang. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment