EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   Forum News & Feedback (https://ecomodder.com/forum/forum-news-feedback.html)
-   -   Small enhancement request to fuel log export (https://ecomodder.com/forum/showthread.php/small-enhancement-request-fuel-log-export-26352.html)

NachtRitter 07-08-2013 03:07 PM

Small enhancement request to fuel log export
 
Hi Darin,

As always, I appreciate the effort and time that you've put into this site. In particular, I really do like the fuel log feature and the fact that you provide a way to export the log to my favorite spreadsheet program (e.g. Excel).

One problem I'm running into when exporting is that, because I tend to use line breaks to separate my comments, every new paragraph ends up as a new cell in Excel. For instance, on the http://ecomodder.com/forum/em-fuel-log.php?do=view_log_stripped&vehicleid=xxxx page, if I have this:
2011-01-06850.816.51$3.55951.53Second tank on the Jetta.

Mostly commuting. Taking surface roads for the commuting, which gives me a round trip fe average of 55 to 60mpg.

Had a few longer trips which required freeway. Freeway fe is closer to 30mpg.

Using ScanGauge II, which is helping to tune my driving style with the TDI. Pulse & Glide (with engine on) works very well. I don't do Engine Off primarily because of the power steering... if I am trying to turn (even slightly) with engine off and then start the engine, the kick of the power steering unit really causes the steering to 'over turn' which is a little scary.

No fe mods other than the LRR tires set to 50psi.

If I cut & paste this into Excel, it looks like this:
2011-01-06850.816.51$3.55951.53Second tank on the Jetta.
Mostly commuting. Taking surface roads for the commuting, which gives me a round trip fe average of 55 to 60mpg.
Had a few longer trips which required freeway. Freeway fe is closer to 30mpg.
Using ScanGauge II, which is helping to tune my driving style with the TDI. Pulse & Glide (with engine on) works very well. I don't do Engine Off primarily because of the power steering... if I am trying to turn (even slightly) with engine off and then start the engine, the kick of the power steering unit really causes the steering to 'over turn' which is a little scary.
No fe mods other than the LRR tires set to 50psi.


I think this could fixed with a relatively minor enhancement that would be very helpful for folks that do fuel log details with multiple paragraphs (like I do)... when you have time in your otherwise busy schedule, of course!

According to the (loose) standards for CSV files, any field containing line breaks should be double-quoted at the beginning and end of the field. Additionally, any double-quotes within that field should be double-double-quoted (e.g. if there is a word with "quotes" in the field, the CSV should ""quote"" the word).

Reference: Comma-separated values - Wikipedia, the free encyclopedia; Section "Toward standardization", relevant text:
Quote:

  • Any field may be quoted (with double quotes).
  • Fields containing a line-break, double-quote, and/or commas should be quoted. (If they are not, the file will likely be impossible to process correctly).
  • A (double) quote character in a field must be represented by two (double) quote characters.

So at least on the view_log_stripped page, having the Details field wrapped in double-quotes and replacing existing double-quotes with double double-quotes would make the import into Excel a bit easier. I know it helps since I typically pull the view_log_stripped contents into a text editor, add the missing quotes, and then copy & paste the results of that into Excel, which allows everything to fit into the cells as expected (that is, keeping the multi-line Details fields all in one cell as it should be).

Appreciate your help on this!

NachtRitter 07-11-2013 12:33 PM

Bumpity... not sure if site owners are considering this request or missed it altogether

MetroMPG 07-11-2013 02:55 PM

Looking into it now... will report back!

MetroMPG 07-11-2013 03:05 PM

OK, try it now.

NachtRitter 07-11-2013 03:24 PM

Awesome! Beautiful! Thank you! (!!) :D

Now it's simply a matter of:
- go to the view_log_stripped page
- select all
- copy
- go to a new Excel page
- select Paste Special...
- choose Text
- click OK

... and everything goes into Excel perfectly! Well, I have to muck with row and column widths, but I'd have to do that no matter what. Definitely a lot nicer than having to pass it through the plain text editor and needing to do edits in there first!!

Thank you Darin, appreciate the fast turnaround!

MetroMPG 07-11-2013 03:31 PM

No problemo! Happy you're using it.


All times are GMT -4. The time now is 07:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com