mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix some whitespace damage
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
78acf20848
commit
2419e074f4
1 changed files with 8 additions and 8 deletions
16
parse-xml.c
16
parse-xml.c
|
@ -249,16 +249,16 @@ static void divetags(char *buffer, void *_tags)
|
|||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if (state == FINDEND) {
|
||||
if (end < start)
|
||||
end = strlen(buffer)-1;
|
||||
if (strlen(buffer) > 0) {
|
||||
}
|
||||
if (state == FINDEND) {
|
||||
if (end < start)
|
||||
end = strlen(buffer)-1;
|
||||
if (strlen(buffer) > 0) {
|
||||
buffer[end-start+1] = '\0';
|
||||
state=FINDSTART;
|
||||
taglist_add_tag(tags, buffer+start);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum number_type {
|
||||
|
@ -514,7 +514,7 @@ static void temperature(char *buffer, void *_temperature)
|
|||
}
|
||||
/* temperatures outside -40C .. +70C should be ignored */
|
||||
if (temperature->mkelvin < ZERO_C_IN_MKELVIN - 40000 ||
|
||||
temperature->mkelvin > ZERO_C_IN_MKELVIN + 70000)
|
||||
temperature->mkelvin > ZERO_C_IN_MKELVIN + 70000)
|
||||
temperature->mkelvin = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue