m->next->start > m->start &&
m->next->start < m->start + m->len) {
// This match is "lefter" than next
-#ifndef __clang_analyzer__
+ #ifndef __clang_analyzer__
match_excise(m->next);
-#endif
+ #endif
}
while (m->next &&
m->prev->start >= m->start) {
// We are "lefter" than previous
n = m->prev;
-#ifndef __clang_analyzer__
+ #ifndef __clang_analyzer__
match_excise(n);
-#endif
+ #endif
}
m = m->next;
@file file.c
- @brief
+ @brief
@author Fletcher T. Penney
- @bug
+ @bug
**/
The `MultiMarkdown 6` project is released under the MIT License..
-
+
GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:
-
+
https://github.com/fletcher/MultiMarkdown-4/
-
+
MMD 4 is released under both the MIT License and GPL.
-
-
+
+
CuTest is released under the zlib/libpng license. See CuTest.c for the
text of the license.
-
+
uthash library:
Copyright (c) 2005-2016, Troy D. Hanson
-
+
Licensed under Revised BSD license
-
+
miniz library:
Copyright 2013-2014 RAD Game Tools and Valve Software
Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
-
+
Licensed under the MIT license
-
+
argtable3 library:
Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
<sheitmann@users.sourceforge.net>
All rights reserved.
-
+
Licensed under the Revised BSD License
-
-
+
+
## The MIT License ##
-
+
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
-
+
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
+
+
## Revised BSD License ##
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
names of its contributors may be used to endorse or promote
products derived from this software without specific prior
written permission.
-
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+
*/
@file file.h
- @brief
+ @brief
@author Fletcher T. Penney
- @bug
+ @bug
**/
The `MultiMarkdown 6` project is released under the MIT License..
-
+
GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:
-
+
https://github.com/fletcher/MultiMarkdown-4/
-
+
MMD 4 is released under both the MIT License and GPL.
-
-
+
+
CuTest is released under the zlib/libpng license. See CuTest.c for the
text of the license.
-
+
uthash library:
Copyright (c) 2005-2016, Troy D. Hanson
-
+
Licensed under Revised BSD license
-
+
miniz library:
Copyright 2013-2014 RAD Game Tools and Valve Software
Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
-
+
Licensed under the MIT license
-
+
argtable3 library:
Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
<sheitmann@users.sourceforge.net>
All rights reserved.
-
+
Licensed under the Revised BSD License
-
-
+
+
## The MIT License ##
-
+
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
-
+
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
+
+
## Revised BSD License ##
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
names of its contributors may be used to endorse or promote
products derived from this software without specific prior
written permission.
-
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+
*/
#if (defined(_WIN32) || defined(__WIN32__))
-// Windows does not know realpath(), so we need a "windows port"
-char *realpath(const char *path, char *resolved_path);
+ // Windows does not know realpath(), so we need a "windows port"
+ char *realpath(const char *path, char *resolved_path);
#endif
#endif
break;
case FRENCH:
+ case SPANISH:
print_const("«");
break;
break;
case FRENCH:
+ case SPANISH:
print_const("»");
break;
break;
case FRENCH:
+ case SPANISH:
print_const("«");
break;
break;
case FRENCH:
+ case SPANISH:
print_const("»");
break;
FRENCH,
GERMAN,
GERMANGUILL,
+ SPANISH,
SWEDISH,
};
break;
case FRENCH:
+ case SPANISH:
print_const("«");
break;
break;
case FRENCH:
+ case SPANISH:
print_const("»");
break;
break;
case LC_ES:
- e->quotes_lang = ENGLISH;
+ e->quotes_lang = SPANISH;
break;
case LC_FR:
if (e == NULL || key == NULL) {
return NULL;
}
-
+
if (e->metadata_stack->size == 0) {
// Ensure we have checked for metadata
if (!mmd_engine_has_metadata(e, NULL)) {
break;
case FRENCH:
+ case SPANISH:
print_const("«");
break;
break;
case FRENCH:
+ case SPANISH:
print_const("»");
break;
a->next = attr_new(key, value);
a = a->next;
} else {
-#ifndef __clang_analyzer__
+ #ifndef __clang_analyzer__
a = attr_new(key, value);
attributes = a;
-#endif
+ #endif
}
free(value); // We stored a modified copy
scratch->quotes_lang = GERMAN;
} else if (strcmp(temp_char, "es") == 0) {
scratch->language = LC_ES;
- scratch->quotes_lang = ENGLISH;
+ scratch->quotes_lang = SPANISH;
} else if (strcmp(temp_char, "fr") == 0) {
scratch->language = LC_FR;
scratch->quotes_lang = FRENCH;
scratch->quotes_lang = GERMAN;
} else if (strcmp(temp_char, "germanguillemets") == 0) {
scratch->quotes_lang = GERMANGUILL;
+ } else if ((strcmp(temp_char, "spanish") == 0) ||
+ (strcmp(temp_char, "es") == 0)) {
+ scratch->quotes_lang = SPANISH;
} else if ((strcmp(temp_char, "swedish") == 0) ||
(strcmp(temp_char, "sv") == 0)) {
scratch->quotes_lang = SWEDISH;
<office:text>
<text:p text:style-name="Standard">‘foo’</text:p>
-<text:p text:style-name="Standard">“foo”</text:p>
+<text:p text:style-name="Standard">«foo»</text:p>
<text:p text:style-name="Standard">foo’s</text:p>
<p>‘foo’</p>
-<p>“foo”</p>
+<p>«foo»</p>
<p>foo’s</p>
`foo'
-``foo''
+«foo»
foo's