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
23701448
Commit
23701448
authored
Dec 09, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #256 from albert-github/feature/bug_first_line_inline
Extra empty line in source fragments
parents
772046d4
79b40a43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
definition.cpp
src/definition.cpp
+3
-2
No files found.
src/definition.cpp
View file @
23701448
...
...
@@ -755,6 +755,7 @@ bool readCodeFragment(const char *fileName,
{
while
((
c
=
fgetc
(
f
))
!=
'\n'
&&
c
!=
EOF
)
/* skip */
;
lineNr
++
;
if
(
found
&&
c
==
'\n'
)
c
=
'\0'
;
}
if
(
!
feof
(
f
))
{
...
...
@@ -763,7 +764,7 @@ bool readCodeFragment(const char *fileName,
while
(
lineNr
<=
endLine
&&
!
feof
(
f
)
&&
!
found
)
{
int
pc
=
0
;
while
((
c
=
fgetc
(
f
))
!=
'{'
&&
c
!=
':'
&&
c
!=
EOF
)
while
((
c
=
fgetc
(
f
))
!=
'{'
&&
c
!=
':'
&&
c
!=
EOF
)
// } so vi matching brackets has no problem
{
//printf("parsing char `%c'\n",c);
if
(
c
==
'\n'
)
...
...
@@ -816,7 +817,7 @@ bool readCodeFragment(const char *fileName,
result
+=
spaces
;
}
// copy until end of line
result
+=
c
;
if
(
c
)
result
+=
c
;
startLine
=
lineNr
;
if
(
c
==
':'
)
{
...
...
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