Grand Prix Racing Online Forum > Bug forum > The most annoying white space in GPRO Bu başlığı engellenenler listesine ekle Bu başlığı takip listesine ekle
Sayfa [1
Yazar Konu: The most annoying white space in GPRO 6 Cevaplar
Chris Shaw
(Grup Amateur - 36)



Gönderiler: 901
  Ülke:
İngiltere 
Sertifikalı: 
Bu iletiyi beğendim (1)   Bu iletiyi beğenmedim (1)
Eski Mesaj #1 Yayınlanma zamanı: 5 Eyl 2021, 13:29:24 Alıntı 
The weather reported in the first lap of the race report has a hidden space after the string, eg

"Rain" -> "Rain "

eg 2 Making it less obvious so you see how annoying this is...

Weather
Cloudy
Cloudy
Cloudy

This has literally taken me hours to debug why my data collector fails, can this be fixed so no one else has this pain? :)
Montes Dimemola
(Grup Pro - 22)



Gönderiler: 242
  Ülke:
Romanya 
Sertifikalı: 
Bu iletiyi beğendim (1)   Bu iletiyi beğenmedim (1)
Eski Mesaj #2 Yayınlanma zamanı: 5 Eyl 2021, 14:17:02 Alıntı 
=TRIM
Luke Frost
(Grup Pro - 20)



Gönderiler: 11111
  Ülke:
Avustralya 
Sertifikalı: 
Bu iletiyi beğendim (0)   Bu iletiyi beğenmedim (0)
Eski Mesaj #3 Yayınlanma zamanı: 5 Eyl 2021, 14:56:28 Alıntı 
Quote ( Chris Shaw @ September 5th 2021,13:29:24 )

my data collector


You seem to be in a klas of your own there. ;)


Quote ( Chris Shaw @ September 5th 2021,13:29:24 )

eg 2 Making it less obvious so you see how annoying this is...

Weather
Cloudy
Cloudy
Cloudy


You can use find, mid, left, len (etc) to isolate these words within a string:
https://datatofish.com/excel-string-functions-left-right-mid...


Chris Shaw
(Grup Amateur - 36)



Gönderiler: 901
  Ülke:
İngiltere 
Sertifikalı: 
Bu iletiyi beğendim (0)   Bu iletiyi beğenmedim (0)
Eski Mesaj #4 Yayınlanma zamanı: 5 Eyl 2021, 18:27:01 Alıntı 
I know trim, and clean, but that is no consolation after spending ages debugging. It' just a little messy having 1 cell with a random white space character when everything else is ok!
Jorrit Boer
(Grup Amateur - 53)


Gönderiler: 181
  Ülke:
Hollanda 
Sertifikalı: 
Bu iletiyi beğendim (0)   Bu iletiyi beğenmedim (0)
Eski Mesaj #5 Yayınlanma zamanı: 5 Eyl 2021, 19:45:20 Alıntı 
Quote ( Chris Shaw @ September 5th 2021,18:27:01 )

I know trim, and clean, but that is no consolation after spending ages debugging. It' just a little messy having 1 cell with a random white space character when everything else is ok!


Glad to see your OCD is no longer an issue... :)
Miel Soeterbroek
(Grup Elite)



Gönderiler: 3107
  Ülke:
Hollanda 
Sertifikalı: 
Bu iletiyi beğendim (1)   Bu iletiyi beğenmedim (0)
Eski Mesaj #6 Yayınlanma zamanı: 5 Eyl 2021, 20:10:56 Alıntı 
It's fairly common for browsers to ignore leading and trailing spaces in leaf html elements.
It's also fairly common to find inconsistencies in GPRO's html structure.

Adapt your big bad data collector accordingly ;)


Montes Dimemola
(Grup Pro - 22)



Gönderiler: 242
  Ülke:
Romanya 
Sertifikalı: 
Bu iletiyi beğendim (1)   Bu iletiyi beğenmedim (0)
Eski Mesaj #7 Yayınlanma zamanı: 5 Eyl 2021, 21:54:54 Alıntı 
i.e. never trust 3rd party data input
Sayfa [1
Grand Prix Racing Online Forum > Bug forum > The most annoying white space in GPRO Bu başlığı engellenenler listesine ekle Bu başlığı takip listesine ekle

Bu konuyu yanıtla