Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when datasheet field is an URL, produce a link in the HTLM output #8

Open
aewallin opened this issue Oct 21, 2017 · 4 comments
Open

Comments

@aewallin
Copy link

When the datasheet field for a part is populated with an URL (e.g. something starting http) it would be nice if there was a working link produced in the HTML output.
now all I seem to get is a plain text with the datasheet field contents.

@HashDefineElectronics
Copy link
Owner

Hiya, That's a good idea.

I'm thinking any field with the following URL format will qualify to a URL?
http://aaaa.bbb
http://aaa.bbbb.ccc
https://aaaa.bbb
https://aaa.bbbb.ccc
aaaa.bbb
aaa.bbbb.ccc

If so I'm thinking I could use this Regex:
((http|https)://)?([\w_-]+(?:(?:.[\w_-]+)+))([\w.,@?^=%&:/+#-]*[\w@?^=%&/+#-])

That said, I'l make sure that I add the option to disable it in case the output is meant to a clean export.

  • Ron

@aewallin
Copy link
Author

ping ;)
any progress during last 12 months?

@HashDefineElectronics
Copy link
Owner

@aewallin Sorry I've not been able to find the time to implement the URL stuff. The sad thing is that its likely wont be worked on until after the new year. :/

To be honest, I'm currently conflicted whether or not I should re-implement the code on Python. Its mostly because KiCad has better support for Python. :(

@aewallin
Copy link
Author

aewallin commented Dec 4, 2018

I'm all for a python re-write! ;) I could probably help/contribute if someone else sets up the basics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants