ProcStack / pxlTextGenerator

Gather handwriting from a photo/scan into a character library; Export text as 'handwritten' images!
GNU General Public License v3.0
2 stars 2 forks source link

formatArrayToString is needlessly large #5

Open ProcStack opened 5 years ago

ProcStack commented 5 years ago

formatArrayToString - Convert nested arrays of dicts and lists into human readable output. Located in - includes/local_guiWidgets.py

formatArrayToString checks for List or Array in an if statement, doing VERY similar things in each if. Could be solved my setting a key array and running the original array through an enumerate for loop instead of for in

Should reduce size of formatArrayToString in half.