Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Annotation-System
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Annotation-Pushers
Annotation-System
Commits
a1e8efe4
Commit
a1e8efe4
authored
Jun 12, 2018
by
Matt Mascarenhas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cinera.c: Fix CollationBuffers->ProjectID test
parent
966d616b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cinera/cinera.c
cinera/cinera.c
+6
-6
No files found.
cinera/cinera.c
View file @
a1e8efe4
...
...
@@ -16,7 +16,7 @@ typedef struct
version
CINERA_APP_VERSION
=
{
.
Major
=
0
,
.
Minor
=
5
,
.
Patch
=
59
.
Patch
=
60
};
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c
...
...
@@ -3062,8 +3062,8 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen
if
(
!
StringsDiffer
(
ProjectInfo
[
ProjectIndex
].
ProjectID
,
HMML
.
metadata
.
project
))
{
CopyString
(
CollationBuffers
->
ProjectID
,
sizeof
(
CollationBuffers
->
ProjectID
),
"%s"
,
HMML
.
metadata
.
project
);
CopyString
(
CollationBuffers
->
ProjectName
,
sizeof
(
CollationBuffers
->
ProjectName
),
"%s"
,
ProjectInfo
[
ProjectIndex
].
FullName
);
CopyString
NoFormat
(
CollationBuffers
->
ProjectID
,
sizeof
(
CollationBuffers
->
ProjectID
)
,
HMML
.
metadata
.
project
);
CopyString
NoFormat
(
CollationBuffers
->
ProjectName
,
sizeof
(
CollationBuffers
->
ProjectName
)
,
ProjectInfo
[
ProjectIndex
].
FullName
);
break
;
}
}
...
...
@@ -4465,12 +4465,12 @@ BuffersToHTML(buffers *CollationBuffers, template *Template, char *OutputPath, i
case
TAG_PROJECT_ID
:
if
(
CollationBuffers
->
ProjectID
[
0
]
==
'\0'
)
{
CopyStringToBufferNoFormat
(
&
Output
,
CollationBuffers
->
ProjectID
);
// NOTE(matt): Not HTML-safe
fprintf
(
stderr
,
"Template contains a <!-- __CINERA_PROJECT_ID__ --> tag
\n
"
"Skipping just this tag, because no project ID is set
\n
"
);
}
else
{
fprintf
(
stderr
,
"Template contains a <!-- __CINERA_PROJECT_ID__ --> tag
\n
"
"Skipping just this tag, because no project ID is set
\n
"
);
CopyStringToBufferNoFormat
(
&
Output
,
CollationBuffers
->
ProjectID
);
// NOTE(matt): Not HTML-safe
}
break
;
case
TAG_PROJECT
:
...
...
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