Sha256: 57a08c1fb71f1130d1f9925c20a00921ec11aecb9806e27af8611cc3836aa79e

Contents?: true

Size: 1.56 KB

Versions: 8

Compression:

Stored size: 1.56 KB

Contents

1. take the results and parse them into an array with new line (\n) as the delimiter
2. iterate over the array
3. if line starts with "Using"
    3a. create a string variable with an open div hmtl tag with the class feature
    3b. append a open paragraph html tag to that variable
    3c. append the line to the variable

4. until line starts with "Using"
    4a. move to the next line
    4b. if the line contains \e
        4c. iterate over the line and for every \e do the following
            4d. if the next 3 characters match 36m
                4e. append an open span tag to the string variable with the style color blue
            4f. if the next 3 characters match 90m
                4g.append an open span tag to the string variable with the style color gray
            4h. if the next 3 characters match 31m
                    4i. append an open span tag to the string variable with the style color red
            4j  if the next 3 characters match 0m
                    4k. append a closing span tag to the string variable and start again at step 4a
            4l. if there are no other instances of \e
                    4m. append the remainder of the line and a close span tag to the string variable
            4n. if there are more instances of \e
                    4o. until you reach the next instance of \e
                        4p. continue iterating over the line, appending each character to the sting variable
                    4q. when you reach the next instance of \e start again at step 4d

                    add check for characters after 0m




Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kymera-0.1.7 lib/spec/html_parsing_alg.txt
kymera-0.1.6 lib/spec/html_parsing_alg.txt
kymera-0.1.5 lib/spec/html_parsing_alg.txt
kymera-0.1.4 lib/spec/html_parsing_alg.txt
kymera-0.1.3 lib/spec/html_parsing_alg.txt
kymera-0.1.2 lib/spec/html_parsing_alg.txt
kymera-0.1.1 lib/spec/html_parsing_alg.txt
kymera-0.1.0 lib/spec/html_parsing_alg.txt