Python Forum
removing spaces/tabs after used .strip()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
removing spaces/tabs after used .strip()
#1
hi guys,

how can i removes spaces/tabs in case like this? It supposed to be in 1 line
[Image: bVkcWF1.png]

It comes from 'div'.text.strip()


#EDIT:

Ok, i guess i should use .split() and then ''.join()

#EDIT2:

Yes, i was right :P
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  extract only text strip byte array Pir8Radio 7 2,790 Nov-29-2022, 10:24 PM
Last Post: Pir8Radio
  Removing leading\trailing spaces azizrasul 8 2,532 Oct-23-2022, 11:06 PM
Last Post: azizrasul
Smile please help me remove error for string.strip() jamie_01 3 1,151 Oct-14-2022, 07:48 AM
Last Post: Pedroski55
  removing spaces msaiahnl 2 1,061 Jul-25-2022, 03:34 PM
Last Post: deanhystad
  Buttons not working in tabs kenwatts275 2 1,336 May-02-2022, 04:45 PM
Last Post: kenwatts275
  PYQT charts in tabs frohr 10 4,228 Feb-13-2022, 04:31 PM
Last Post: Axel_Erfurt
  Can't strip extra characters from Data Canflyguy 7 1,813 Jan-10-2022, 02:16 PM
Last Post: Canflyguy
  strip() pprod 8 3,373 Feb-16-2021, 01:11 PM
Last Post: buran
  create new tabs and populate using python reggie4 2 2,218 Jan-23-2021, 11:25 PM
Last Post: Larz60+
  Need help with code for my WS2812B (Neopixel) Led Strip Phibbl 1 2,702 Apr-08-2020, 07:18 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020