Tidy (clean) the SVD file
Cleans up the STM32 SVD's by removing newlines and whitespace inside descriptions
C:circle rad 40px "$(SVD)" fit arrow right 100% E:box rad 10px "$(TEXT_PROC)" fit arrow right 100% G: circle rad 40px "$(CLEANED_SVD)" fit F:circle rad 40px "$(TIDY_PAT)" fit at 1.0 s of C arrow from F.e \ then right until even with E \ then to E.s→ /pikchrshow
Makefile
$(CLEANED_SVD): $(SVD) $(TEXT_PROC) -t -nobackup -line $(SVD) -f $($TIDY_PAT) -out $(CLEANED_SVD)
$(svd_tidy.pat)
! get rid of all leading whitespace \N\W=! Remove newlines and whitespace inside description fields \<description\>*\n\W*\<\/description\>\n=<description\>$1\s$2</description>\n
! change 0x to $ to be Forth friendly 0\J\C\Jx\J<X>=\$$1