mirror of
https://github.com/boostorg/build.git
synced 2026-02-20 02:32:13 +00:00
Make doc parsing resilient against different line endings.
This commit is contained in:
@@ -650,7 +650,7 @@ local rule print-help-config (
|
||||
}
|
||||
|
||||
|
||||
ws = " " ;
|
||||
ws = "\t " ;
|
||||
|
||||
# Extract the text from a block of comments.
|
||||
#
|
||||
@@ -967,9 +967,7 @@ local rule read-file (
|
||||
content = [ SHELL "cat \"$(file)\"" ] ;
|
||||
}
|
||||
local lines ;
|
||||
local nl = "
|
||||
" ;
|
||||
local << = "([^$(nl)]*)[$(nl)](.*)" ;
|
||||
local << = "([^\r\n]*)[\r]?[\n](.*)" ;
|
||||
local line+ = [ MATCH "$(<<)" : "$(content)" ] ;
|
||||
while $(line+)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user