Skip to content

narasimharaosp/list2table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title:- Convert list to table

Purpose:- Easing the wiki content import during rapid website development. Description:- This code helps you convert the string(with tab space and newline) to HTML table.

Example:-


Rule:-


th1 content - tab space - th2 content - new line(first row thead)
td1 content - tab space - td2 content - new line(second row onwards tbody)

Input:-
--------------------------------------
Topic Description
Name Vishnuvardhan(Saahasa Simha)
Born Sampath Kumar 18 September 1950 Mysore, Mysore State, India
Died 30 December 2009 (aged 59) Mysore, Karnataka, India
Nationality Indian
Occupation Actor
Years active 1972–2009
Spouse(s) Bharathi Rao (1975–2009)

Output:-
---------------------------------------

Topic Description
Name Vishnuvardhan(Saahasa Simha)
Born Sampath Kumar 18 September 1950 Mysore, Mysore State, India
Died 30 December 2009 (aged 59) Mysore, Karnataka, India
Nationality Indian
Occupation Actor
Years active 1972–2009
Spouse(s) Bharathi Rao (1975–2009)

Thanks
Happy coding!!!!!!
@narasimharaosp

About

Convert string list to html table

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages