nojronatron / Bigfoot-Bib-Report-WL-Form

Customized Winlink Race Tracker Form and Template for use in Bigfoot ultramarathon events.
https://enchanting-pony-09ae40.netlify.app/bigfoot-bib-report-initial
The Unlicense
5 stars 1 forks source link

Bug: Template Won't Launch From Winlink Express #15

Closed nojronatron closed 2 years ago

nojronatron commented 2 years ago

File Bigfoot Bib Report.txt has the required Form: declaration but somehow cannot properly read the file as-is.

The fix is to add line-feeds between each line in the template file to ensure there is no incidental concatenation.

Update the file so each entry has an additional CR/LF character between each Template keyword and following argument(s) for proper operation.

nojronatron commented 2 years ago

Working to resolve this issue today.

jhmartin commented 2 years ago

Still seeing this in 101b. The error is it can't open Form: formname here To: <var

nojronatron commented 2 years ago

There is some sort of blank-line issue going on, probably related to one of my dev environments being Linux. Try this:

  1. Open Winlink Express
  2. Click Message > Template Manager
  3. Open (your callsign) Templates
  4. Click Bigfoot Bib Report.txt
  5. Click Edit

Are there any blank lines? Or is everything smooshed together in a single line?

If smooshed together, add blank lines so the file looks like this:

Form: Bigfoot Bib Report Initial.html

To: <var address>

Subject:<var msgsubject>

Msg: 
<var TheData>

-----

<var Comment>

<var FormatNote>

-----

Winlink Express Sender <var MsgSender>

Template version <var Theversion>

Let me know what happens and I'll figure out a way to fix this in the next bugfix release.

jhmartin commented 2 years ago

I'll try that. Perhaps run unix2dos on the file before comitting it?

nojronatron commented 2 years ago

Thanks! Since I have used both linux and windows dev environments, it probably has to do with this git behavior mentioned in stackoverflow. Next bugfix forthcoming.

jhmartin commented 2 years ago

The process above worked around the issue.

nojronatron commented 2 years ago

It seems like GitHub's Release ZIP process is stripping CR characters. Follow the instructions in this post and the problem should go away. Meanwhile, I'll try to find a better release system that will retain the CRLF settings so Winlink Express doesn't misinterpret the file on read/import.

jhmartin commented 2 years ago

Although not a short-term solution, might inquire with the RMS people if winlink can be made more tolerant on reading the file.

DaveWilma commented 2 years ago

My TXT file looks good, plenty of line feeds. Still no joy.

jhmartin commented 2 years ago

@DaveWilma Did you look in the Template Manager, or in notepad? Notepad etc don't show the issue.

nojronatron commented 2 years ago

If you are using Template Manager to add the line feeds, then please attach a screen shot of the template manager so we can debug it by eyeball.

DaveWilma commented 2 years ago

That did it, Edit from the Template manager. I am looking at the template.

nojronatron commented 2 years ago

Fixed with PR #20

bytescream commented 2 years ago

Wow, who would have thought the LF/CRLF issue would be the challenge here.

Any way I can help.

Been following, and sure enough, simple Visual Studio Code fix is to select CRLF and save. Sorry it is not that simple in GitHub build.