Author Topic: Is there a format for comments in the list file?  (Read 14512 times)

0 Members and 1 Guest are viewing this topic.

Offline neroute2

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1142
  • Last Login:Today at 01:46:39 am
Is there a format for comments in the list file?
« on: April 13, 2018, 11:54:03 am »
I'm looking to add comments like such:
Code: [Select]
CA I80 9 12 *rode a bus on this segment; also sight clinched on the frontage road*What format, if any, do I use for comments?

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4422
  • Last Login:November 11, 2024, 12:50:03 pm
  • I like C++
Re: Is there a format for comments in the list file?
« Reply #1 on: April 13, 2018, 11:59:06 am »
I don't believe inline comments are supported. You'll have to use a different line. EG,
Code: [Select]
CA I-80 9 12
   #rode a bus on this segment; also sight clinched on the frontage road
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline neroute2

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1142
  • Last Login:Today at 01:46:39 am
Re: Is there a format for comments in the list file?
« Reply #2 on: April 13, 2018, 12:26:56 pm »
Thanks...that's what I was looking for :)

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Is there a format for comments in the list file?
« Reply #3 on: April 13, 2018, 02:06:36 pm »
Any also any line you include that doesn't parse properly will ultimately be ignored.  It will generate an entry in your .log file, but if you don't mind them, the system sure doesn't.
« Last Edit: April 14, 2018, 10:16:58 pm by Jim »

Offline jwood.ok

  • Newbie
  • *
  • Posts: 21
  • Last Login:June 09, 2024, 10:51:29 pm
Re: Is there a format for comments in the list file?
« Reply #4 on: April 14, 2018, 09:08:36 pm »
Actually came here to look for this same thing.  Currently I've been doing updates by state, but I could also see it helpful to do by trip...as long as you can put in comments.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Is there a format for comments in the list file?
« Reply #5 on: July 09, 2018, 09:41:50 pm »
As of tonight's site update, two types of comments are now supported.

1) as before, a full line starting with '#' is ignored silently by the site update process

Example:

Code: [Select]
# The entries below are for my trip to Mongolia:
2) a valid line with four fields can have additional fields (where a "field" is a word separated from its neighboring words by whitespace) and additional fields beyond the 4 will be ignored silently if the fifth (overall) field starts with a '#'.

Examples:

Code: [Select]
NY NY5 NY67_W NY30/67 # this was probably my first clinched highway segment
NY NY5 NY67_W NY30/67 #there has to be a space before the # but everything after is ignored