From: Fletcher T. Penney Date: Mon, 3 Sep 2018 02:50:20 +0000 (-0400) Subject: UPDATED: Apply astyle X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef35b7718f2ccffa0fe613c28f87548f9c3555d1;p=multimarkdown UPDATED: Apply astyle --- diff --git a/Sources/libMultiMarkdown/mmd.c b/Sources/libMultiMarkdown/mmd.c index 63bbc99..9c35670 100644 --- a/Sources/libMultiMarkdown/mmd.c +++ b/Sources/libMultiMarkdown/mmd.c @@ -2818,50 +2818,50 @@ DString * mmd_engine_convert_to_data(mmd_engine * e, short format, const char * /// Convert OPML string to MMD DString * mmd_string_convert_opml_to_text(const char * source) { - mmd_engine * e = mmd_engine_create_with_string(source, 0); + mmd_engine * e = mmd_engine_create_with_string(source, 0); - DString * result = mmd_engine_convert_opml_to_text(e); + DString * result = mmd_engine_convert_opml_to_text(e); - e->root = NULL; - mmd_engine_free(e, true); + e->root = NULL; + mmd_engine_free(e, true); - return result; + return result; } /// Convert OPML DString to MMD DString * mmd_d_string_convert_opml_to_text(DString * source) { - mmd_engine * e = mmd_engine_create_with_dstring(source, 0); + mmd_engine * e = mmd_engine_create_with_dstring(source, 0); - DString * result = mmd_engine_convert_opml_to_text(e); + DString * result = mmd_engine_convert_opml_to_text(e); - e->root = NULL; - mmd_engine_free(e, false); + e->root = NULL; + mmd_engine_free(e, false); - return result; + return result; } /// Convert OPML to text without modifying original engine source DString * mmd_engine_convert_opml_to_text(mmd_engine * e) { - DString * original = d_string_new(""); - d_string_append_c_array(original, e->dstr->str, e->dstr->currentStringLength); + DString * original = d_string_new(""); + d_string_append_c_array(original, e->dstr->str, e->dstr->currentStringLength); - mmd_convert_opml_string(e, 0, e->dstr->currentStringLength); + mmd_convert_opml_string(e, 0, e->dstr->currentStringLength); - // Swap original and engine - char * temp = e->dstr->str; - size_t size = e->dstr->currentStringLength; + // Swap original and engine + char * temp = e->dstr->str; + size_t size = e->dstr->currentStringLength; - // Replace engine copy with original OPML text - e->dstr->str = original->str; - e->dstr->currentStringLength = original->currentStringLength; + // Replace engine copy with original OPML text + e->dstr->str = original->str; + e->dstr->currentStringLength = original->currentStringLength; - // Original now contains the processed text - original->str = temp; - original->currentStringLength = size; + // Original now contains the processed text + original->str = temp; + original->currentStringLength = size; - return original; + return original; }