testdown icon indicating copy to clipboard operation
testdown copied to clipboard

Allow multiline descriptions

Open kellijohnson-NOAA opened this issue 8 months ago • 0 comments

Currently get_desc() searches for the line above or two lines above an expectation to find a description tag. Then, if it is a multiline description, i.e., two lines, then the carriage return in the description messes up the resulting table, where the portion after the carriage return will be on the next line of the table in the Test column rather than the Description column. This can easily be fixed by substituting the carriage return with a space. Additionally, if a description spans more than two lines, or is not two immediate lines above the expectation, it is not found. I also have a proposal for this where it searches one or two lines above and if it does not find a description tag then it looks for the closest description tag above it. Both of these fixes are in the fix-get_desc branch of my fork and I am happy to make a PR if that is desired.

kellijohnson-NOAA avatar Jun 02 '25 16:06 kellijohnson-NOAA