Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve recipe export (text) & add BBCode export #66
I changed almost all the behavior of the getTextFormat function in order to make it smaller and easier to maintain. I split this function in order to reuse all sub-function for BBCode extraction.
@Brewtarget/developers : Please review and give me some feedbacks
Regarding the point 1, I agree. I think that we must change several unit display:
I'd also like to make units translatable. The best example is "day" that stays in English in every languages.
I also agree about the unit alignment, I try to do something about it.
I've notice some similar bugs. But I know why it appends.
I've added the BBCode export, but I don't know how to connect it to the interface. I thought of two solutions:
What do you prefer ?
Now you can export to BBCode from File->Recipe.
I didn't change the alignment on the unit as rocketman768 asked because it is not trivial because the amount and its unit come directly together from displayAmount function.
Enjoy BBCode ;)
Aug 2, 2015
As it hasn't been merge yet, I've added a function to wrap too long instruction strings to keep most of the text below the 80 chars limit.