CenterOnBudget / getcensus

Load American Community Survey data from the U.S. Census Bureau API into Stata
https://centeronbudget.github.io/getcensus/
MIT License
14 stars 3 forks source link

Display link to API call instead of text #1

Closed c-zippel closed 4 years ago

c-zippel commented 4 years ago

Currently, the API call is displayed to the user as a link only if the URL exceeds 255 characters, otherwise it's printed as a string. I prefer the link to the URL text. The URL string is not copy-paste-able due to > s at the line breaks. By contrast, the user can easily click the link to see the URL and the API response. @vmsaenz, thoughts?

c-zippel commented 4 years ago

See #14

c-zippel commented 4 years ago

So, apparently SMCL, which is used to make the hyperlink does not like locals with more than 255 characters in the display context. Could not find any docs explicitly about this. (Perhaps it is linked to string size limit issue referenced in this post?) I'm going to restorethe original program behavior, which is to display a link if possible and the text of the API call if not.