Fix issue parsing double spaces after # HELP/# TYPE by csmarchbanks · Pull Request #1134 · prometheus/client_python

@csmarchbanks

A regression was reported for 0.22.x where if there are two spaces after
HELP or TEXT we would raise a value error. This was caused by having an
extra entry in our array of splits due to how we preocess the splits.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

ywwg

ywwg approved these changes Sep 11, 2025