mirror da
				https://github.com/quitesimpleorg/qsmaddy.git
				synced 2025-11-04 02:29:28 +01:00 
			
		
		
		
	Merge pull request #6 from progsource/make-sure-that-all-block-parsers-are-finished
Make sure that all block parsers are finished
This commit is contained in:
		@@ -27,7 +27,7 @@ file(GLOB_RECURSE MADDY_TESTS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/tests/maddy/*.cp
 | 
			
		||||
 | 
			
		||||
set(
 | 
			
		||||
  CMAKE_CXX_FLAGS
 | 
			
		||||
  "${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions"
 | 
			
		||||
  "${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
# ------------------------------------------------------------------------------
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# maddy
 | 
			
		||||
 | 
			
		||||
[](https://opensource.org/licenses/MIT)
 | 
			
		||||
[](https://semver.org/)
 | 
			
		||||
[](https://semver.org/)
 | 
			
		||||
[](https://travis-ci.org/progsource/maddy)
 | 
			
		||||
 | 
			
		||||
maddy is a C++ Markdown to HTML **header-only** parser library.
 | 
			
		||||
 
 | 
			
		||||
@@ -93,6 +93,18 @@ public:
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // make sure, that all parsers are finished
 | 
			
		||||
    if (currentBlockParser)
 | 
			
		||||
    {
 | 
			
		||||
      std::string emptyLine = "";
 | 
			
		||||
      currentBlockParser->AddLine(emptyLine);
 | 
			
		||||
      if (currentBlockParser->IsFinished())
 | 
			
		||||
      {
 | 
			
		||||
        result += currentBlockParser->GetResult().str();
 | 
			
		||||
        currentBlockParser = nullptr;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Fai riferimento in un nuovo problema
	
	Block a user